home *** CD-ROM | disk | FTP | other *** search
/ X User Tools / X User Tools (O'Reilly and Associates)(1994).ISO / sun4c / archive / tcltk.z / tcltk / man / catn / source.n < prev    next >
Text File  |  1994-09-20  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4. source(n)             Tcl Built-In Commands
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NAME
  11.      source - Evaluate a file as a Tcl script
  12.  
  13. SYNOPSIS
  14.      source _f_i_l_e_N_a_m_e
  15. _________________________________________________________________
  16.  
  17.  
  18. DESCRIPTION
  19.      Read file _f_i_l_e_N_a_m_e and pass the contents to the  Tcl  inter-
  20.      preter  as  a script to evaluate in the normal fashion.  The
  21.      return value from source is the return  value  of  the  last
  22.      command  executed  from  the  file.   If  an error occurs in
  23.      evaluating the contents of the file then the source  command
  24.      will return that error.  If a return command is invoked from
  25.      within the file then the  remainder  of  the  file  will  be
  26.      skipped and the source command will return normally with the
  27.      result from the return command.  If _f_i_l_e_N_a_m_e starts  with  a
  28.      tilde,  then  it  is  tilde-substituted  as described in the
  29.      Tcl_TildeSubst manual entry.
  30.  
  31.  
  32. KEYWORDS
  33.      file, script
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Tcl                                                             1
  64.  
  65.  
  66.  
  67.